﻿/*
Commerce by Onex – eCommerce software platform (www.ecommerce.byonex.com)
Copyright (C) 2008-2010 by Onex Group

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 */
using System;
using System.Collections.Generic;
using System.Text;

namespace ShopModel
{
    /// <summary>
    /// Klasa przechowująca informacje o języku w jakim wyświetlana jest strona (Class storing information about labguage in which page is displayed)
    /// </summary>
    [Serializable]
    public class Language
    {
        #region VARIBLES

        private int? _LanguageID;
        private string _Name;
        private string _Culture;
        private bool _Active;
        private string _FlagUrl;
        private bool _IsDefault;
        private string _OutUrl;

        #endregion

        #region CONSTRUCTORS

        public Language()
        { }

        public Language(int? LanguageID, string Name, string Culture, bool Active, string FlagUrl, bool IsDefault, string OutUrl )
        {
            _LanguageID = LanguageID;
            _Name = Name;
            _Culture = Culture;
            _Active = Active;
            _FlagUrl = FlagUrl;
            _IsDefault = IsDefault;
            _OutUrl = OutUrl;
        }

        #endregion

        #region FIELDS

        public string FlagUrl
        {
            get { return _FlagUrl; }
            set { _FlagUrl = value; }
        }

        public bool IsDefault
        {
            get { return _IsDefault; }
            set { _IsDefault = value; }
        }

        public int? LanguageID
        {
            get { return _LanguageID; }
            set { _LanguageID = value; }
        }

        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        public string Culture
        {
            get { return _Culture; }
            set { _Culture = value; }
        }
        
        public bool Active
        {
            get { return _Active; }
            set { _Active = value; }
        }

        public string OutUrl
        {
            get { return _OutUrl; }
            set { _OutUrl = value; }
        }

        #endregion

    }
}
